import request from "@/plugins/axios";
// 商城用户列表
export function listApi(data) {
  return request({
    url: "/shop/user/index",
    method: "post",
    data,
  });
}

//  商城会员绑定客户
export function saveApi(data) {
  return request({
    url: "/shop/user/bind",
    method: "post",
    data,
  });
}
// 会员冻结和解冻
export function bindApi(data) {
  return request({
    url: "/shop/user/state",
    method: "post",
    data,
  });
}
//  删除
export function delApi(data) {
  return request({
    url: "/shop/user/delete",
    method: "post",
    data,
  });
}
//   客户数据
export function customerOptionsApi(data) {
  return request({
    url: "/crm/customer/options",
    method: "post",
    data,
  });
}

//  状态
export function stateApi(data) {
  return request({
    url: "/shop/user/distributor",
    method: "post",
    data,
  });
}
